#ifndef USERDELETE_H
#define USERDELETE_H

#include <QWidget>
#include <QPaintEvent>
#include <QPainter>
#include "blldataflow.h"
#include "sqlhelper.h"

namespace Ui {
class UserDelete;
}

class UserDelete : public QWidget
{
    Q_OBJECT

public:
    explicit UserDelete(QWidget *parent = nullptr);
    ~UserDelete();

private slots:
    void on_btnCancel_clicked();

    void on_btnOK_clicked();
    void setUser(User user_);
    void updateLableQuestion();

    void on_btnClose_clicked();
    void retranslateUiSlot();

private:
    void initWidget();

protected:
    void paintEvent(QPaintEvent *event);

private:
    Ui::UserDelete *ui;
    BllDataFlow * bdf;
    SqlHelper * sqlHelper;
    User user;
};

#endif // USERDELETE_H
